Delete user-project mappings on project deletion#13456
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.20 #13456 +/- ##
=========================================
Coverage 16.25% 16.26%
- Complexity 13432 13437 +5
=========================================
Files 5667 5667
Lines 500670 500673 +3
Branches 60801 60802 +1
=========================================
+ Hits 81401 81417 +16
+ Misses 410163 410148 -15
- Partials 9106 9108 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ac25417 to
4244c2c
Compare
4244c2c to
2106a39
Compare
2106a39 to
0c297c1
Compare
|
@blueorangutan package |
|
@winterhazel a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 18316 |
|
looks good, but will need extensive upgrade testing (will 20.2 -> 23.0 work?) |
|
@Tonitzpp |
Description
When a user is added to a project, and this project is then deleted, the user-project mapping is never removed from the database. Thus, when attempting to delete the user's account, an error is returned stating that the account is still linked to a project.
Therefore, this PR deletes the invalid user-project mappings and fixes the project deletion process in CloudStack.
Types of changes
Feature/Enhancement Scale or Bug Severity
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
select * from project_accounthad the entries for 1 account and 1 user belonging to the project.